import request from '@/utils/request'

// 获得权限列表
export const getPerList = () => request.get('/sys/permission')

// 新增权限
export const addPer = (data) => request.post('/sys/permission', data)

// 获取权限点详情
export const getPer = id => request.get(`/sys/permission/${id}`)

// 修改 权限点详情
export const editPer = (data) => request.put(`/sys/permission/${data.id}`, data)

// 删除 权限点详情
export const delPer = id => request.delete(`/sys/permission/${id}`)
